package task09;

/**
 * @author Administrator
 *  求100至999之间的所有水仙花数
 */
public class Test3 {
    public static void main(String[] args) {
        int x=100;
        int a,b,c;
        while (x>=100&x<=999){
            a=x/100;
            b=(x/10)%10;
            c=x%10;
            if(x==a*a*a+b*b*b+c*c*c){
                System.out.println(x+"是水仙花数");
            }
            x++;
        }

    }
}
